import { request } from 'ice';

/** 校验激活码 */
export function codeCheck(activeCode: string) {
  // @ts-ignore
  return request.get<string>('/seller/account/code/check', { params: { activeCode }, ignoreAuth: true });
}

export interface ActivePrams {
  activeCode?: string;
  password?: string;
  confirmPassword?: string;
}
/** 激活账号 */
export function accountActive(data: ActivePrams) {
  // @ts-ignore
  return request.post<string>('/seller/account/active', data, { ignoreAuth: true });
}
